//
//  AppConfig.swift
//  YaoXinCalculator
//
//  Created by Li Dong on 2023/6/1.
//

import UIKit

class AppConfig: NSObject {

    static var finishGuide: Bool {
        get {
            return UserDefaults.standard.bool(forKey: "finishGuide")
        }
        set {
            UserDefaults.standard.set(true, forKey: "finishGuide")
            UserDefaults.standard.synchronize()
        }
    }
    
    //协议
    static let SERVICE_URL = NSLocalizedString("https://wvcbvnj2nym.feishu.cn/docx/AzTZdFq5Yoz8Q0xLL6YcoVFmnAz", comment: "")
    static let PRIVACY_URL = NSLocalizedString("https://wvcbvnj2nym.feishu.cn/docx/TaOcdygQJoReDRxwEtHcW8KznNh", comment: "")
    
    static let H5_URL = NSLocalizedString("http://xinguo.rocket.xin/zhengjianzhao/xinguo/home.html", comment: "")
    

    
    static var isBuy: Bool {
        set {
            UserDefaults.standard.set(newValue, forKey: "isBuy")
            UserDefaults.standard.synchronize()
        }
        get {
            return UserDefaults.standard.bool(forKey: "isBuy")
        }
    }
    
    
    static let isEnglishEnv = NSLocalizedString("中文版", comment: "") == "英文版"
    
}
